<div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5><span><vc:i18n name="申请信息" namespace="allocationStorehouseDetail"></vc:i18n></span></h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_callBackListPurchaseApply()">
                            返回
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-4">
                            <div class="form-group">
                                <label class="col-form-label"><span><vc:i18n name="申请人" namespace="allocationStorehouseDetail"></vc:i18n></span>：</label>
                                <label class="">{{allocationStorehouseDetailInfo.startUserName}}</label>
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group">
                                <label class="col-form-label"><span><vc:i18n name="申请时间" namespace="allocationStorehouseDetail"></vc:i18n></span>：</label>
                                <label class="">{{allocationStorehouseDetailInfo.createTime}}</label>
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group">
                                <label class="col-form-label"><span><vc:i18n name="类型" namespace="allocationStorehouseDetail"></vc:i18n></span>：</label>
                                <label class="">{{allocationStorehouseDetailInfo.applyTypeName}}</label>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4">
                            <div class="form-group">
                                <label class="col-form-label"><span><vc:i18n name="状态" namespace="allocationStorehouseDetail"></vc:i18n></span>：</label>
                                <label class="">{{allocationStorehouseDetailInfo.stateName}}</label>
                            </div>
                        </div>
                        <div class="col-sm-8">
                            <div class="form-group">
                                <label class="col-form-label"><span><vc:i18n name="申请说明" namespace="allocationStorehouseDetail"></vc:i18n></span>：</label>
                                <label class="">{{allocationStorehouseDetailInfo.remark}}</label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5><span><vc:i18n name="调拨物品" namespace="allocationStorehouseDetail"></vc:i18n></span></h5>
                    <div class="ibox-tools" style="top:10px;">
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                            <tr>
                                <th class="text-center"><span><vc:i18n name="物品" namespace="allocationStorehouseDetail"></vc:i18n></span>ID</th>
                                <th class="text-center"><span><vc:i18n name="物品类型" namespace="allocationStorehouseDetail"></vc:i18n></span></th>
                                <th class="text-center"><span><vc:i18n name="物品名称" namespace="allocationStorehouseDetail"></vc:i18n></span></th>
                                <th class="text-center"><span><vc:i18n name="物品规格" namespace="allocationStorehouseDetail"></vc:i18n></span></th>
                                <th class="text-center"><span><vc:i18n name="物品编码" namespace="allocationStorehouseDetail"></vc:i18n></span></th>
                                <th class="text-center"><span><vc:i18n name="是否是固定物品" namespace="allocationStorehouseDetail"></vc:i18n></span></th>
                                <th class="text-center">{{allocationStorehouseDetailInfo.applyType == '10000' || allocationStorehouseDetailInfo.applyType == '30000' ? '被调仓库' : '退还人'}}</th>
                                <th class="text-center"><span><vc:i18n name="目标仓库" namespace="allocationStorehouseDetail"></vc:i18n></span></th>
                                <th class="text-center"><span><vc:i18n name="原库存" namespace="allocationStorehouseDetail"></vc:i18n></span>({{allocationStorehouseDetailInfo.applyType == '30000' ? '目标仓库' : '被调仓库'}})</th>
                                <th class="text-center"><span><vc:i18n name="调拨数量" namespace="allocationStorehouseDetail"></vc:i18n></span></th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="resourceStore in allocationStorehouseDetailInfo.resourceStores">
                                <td class="text-center">{{resourceStore.resId}}</td>
                                <td class="text-center">{{resourceStore.parentRstName}} > {{resourceStore.rstName}}</td>
                                <td class="text-center">{{resourceStore.resName}}</td>
                                <td class="text-center">{{resourceStore.specName ? resourceStore.specName : '-'}}</td>
                                <td class="text-center">{{resourceStore.resCode}}</td>
                                <td class="text-center">{{resourceStore.isFixedName}}</td>
                                <td class="text-center">{{allocationStorehouseDetailInfo.applyType == '10000' || allocationStorehouseDetailInfo.applyType == '30000' ? resourceStore.shaName : allocationStorehouseDetailInfo.startUserName}}</td>
                                <td class="text-center">{{resourceStore.shzName}}</td>
                                <td class="text-center">{{resourceStore.originalStock}}{{resourceStore.unitCodeName}}</td>
                                <td class="text-center">{{resourceStore.stock}}{{resourceStore.applyType==20000 ? resourceStore.miniUnitCodeName : resourceStore.unitCodeName}}</td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="10">
                                    <ul class="pagination float-right"></ul>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="row" v-if="allocationStorehouseDetailInfo.applyType == '10000'">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5><span><vc:i18n name="工单流转" namespace="allocationStorehouseDetail"></vc:i18n></span></h5>
                    <div class="ibox-tools" style="top:10px;">
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="table table-stripped">
                        <thead>
                            <tr>
                                <th scope="col"><span><vc:i18n name="序号" namespace="allocationStorehouseDetail"></vc:i18n></span></th>
                                <th scope="col"><span><vc:i18n name="处理人" namespace="allocationStorehouseDetail"></vc:i18n></span></th>
                                <th scope="col"><span><vc:i18n name="状态" namespace="allocationStorehouseDetail"></vc:i18n></span></th>
                                <th scope="col"><span><vc:i18n name="处理时间" namespace="allocationStorehouseDetail"></vc:i18n></span></th>
                                <th scope="col"><span><vc:i18n name="耗时" namespace="allocationStorehouseDetail"></vc:i18n></span></th>
                                <th scope="col"><span><vc:i18n name="意见" namespace="allocationStorehouseDetail"></vc:i18n></span></th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="(tItem,index) in allocationStorehouseDetailInfo.auditUsers">
                                <td>{{index+1}}</td>
                                <td>{{tItem.userName?tItem.userName:tItem.auditName}}</td>
                                <td>{{tItem.stateName}}</td>
                                <td>{{tItem.auditTime}}</td>
                                <td>{{tItem.duration}}</td>
                                <td>{{tItem.message}}</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
